package beans.spider;

import java.sql.SQLException;

/**
 * 说明一下：由于我抓取的是针对oschina的，所以里面的url正则表达式不适合其他网站，需要自己修改一下。你也可以写成xml来配置。
 * 
 * @author Jert
 * 
 */
public class Test
{
	public static void main(String[] args) throws SQLException
	{
		String url = "http://www.oschina.net/code/explore/achartengine/client/AndroidManifest.xml";
		String url1 = "http://www.oschina.net/code/explore";
		String url2 = "http://www.oschina.net/code/explore/achartengine";
		String url3 = "http://www.oschina.net/code/explore/achartengine/client";
		UrlQueue.addElem(url);
		UrlQueue.addElem(url1);
		UrlQueue.addElem(url2);
		UrlQueue.addElem(url3);
		UrlDataHanding[] url_Handings = new UrlDataHanding[10];
		for (int i = 0; i < 10; i++)
		{
			url_Handings[i] = new UrlDataHanding();
			new Thread(url_Handings[i]).start();
		}
	}
}
